package com.personal.sfe.test;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 梁奔
 * @date: 2025/11/04
 */
@RestController
public class HelloController {
    @PreAuthorize("hasAuthority('sys:file:del')")
    @GetMapping("/api/hello")
    public String hello() {
        return "Hello from protected API!";
    }
}
